from selenium.webdriver.common.by import By
from common.base import Base


class BackLoginPage(Base):
    # 输入用户名
    def input_username(self, username):
        self.send_keys((By.NAME, 'username'), username)

    # 输入密码
    def input_password(self, password):
        self.send_keys(('name', 'password'), password)

    # 点击登录
    def login(self):
        self.click((By.CLASS_NAME, 'btn-a'))

    # 点击自动登录
    def remember(self):
        self.click((By.ID, 'remember'))


if __name__ == '__main__':
    pass
